from pydantic import BaseModel
from typing import Optional

# 用户模型
class User(BaseModel):
    username: str
    hashed_password: str
    created_time: Optional[str]= None

# 令牌模型
class Token(BaseModel):
    access_token: str
    token_type: str
    refresh_token: str